package com.yang.controller;


import com.yang.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class TestController {

//    @Resource
    @Autowired
    UserMapper userMapper;


    @GetMapping("/list")
    List<Long>list(){
        return userMapper.selectAllId();
    }


}
